// import { MessageInstance } from 'antd/es/message/interface'

import { BaseResponse } from '@/type/api'

//  messageApi: MessageInstance
export const ErrorTip = (res: BaseResponse) => {
  if (res.code < 200 || res.code >= 399) {
    return true
  }
  return false
}
